<template name="page-header">
	<view>
		<!-- 沉浸式头部 -->
		<!-- <view class="status_bar"></view> -->
		<cu-custom :isBack="true"><block slot="backText">返回</block><block slot="content">{{headInfo.title}}</block></cu-custom>
	</view>
</template>

<script>
	export default {
		name: "page-header",
		props: {
			headInfo: {
				type: Object,
				default() {
					return []
				}
			},
		},
		data() {
			return {
				
			}
		},
		methods:{
			// 返回上一页
			goBack(){
				uni.navigateBack();
			}
		}
	}
</script>

<style lang="scss">
	.status_bar {
		height: var(--status-bar-height);  
		width: 100%;
	}
</style>